package com.aqie.security.demo.repository;

import com.aqie.security.demo.dto.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

/**
 * @Function:
 * @Author: aqie
 * @Date: 2019/4/3 13:35
 */
public interface UserRepository extends JpaRepository<User, Integer> {
    @Query(value = "select u from User u where u.username=?1")
    User findByUsername(String username);
}
